tools: memshr: arm64 support
authorIan Campbell <ian.campbell@citrix.com>
Fri, 15 Mar 2013 13:15:47 +0000 (13:15 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 11 Apr 2013 10:09:25 +0000 (11:09 +0100)
commit3dba45ee8a808b71e702df4d8c36c5dbf183b49d
tree8ee461d3435e63afa35eb06ea69afdf899d2e5f3
parentae4b6f29a983e283657433f5a422d83b4c5ecc74
tools: memshr: arm64 support

I'm not mad keen on propagating these sorts of asm atomic operations throughout
our code base. Other options would be:

- use libatomic-ops, http://www.hpl.hp.com/research/linux/atomic_ops/, although
  this doesn't seem to be as widespread as I would like (not in RHEL5 for
  example)
- use a pthread lock. This is probably the simplest/best option but I wasn't
  able to figure out the locking hierarchy of this code

So I've copped out and just copied the appropriate inlines here.

I also nuked some stray ia64 support and fixed a coment in the arm32 version
while I was here.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
tools/memshr/bidir-hash.c